// 实验相关API
import request from '@/utils/request'

// 检查实验任务队列
export const CheckExperimentQueue = () => {
  return request({
    url: '/api/Experiment/CheckExperimentQueue',
    method: 'post',
  })
}

// 生成实验任务编号
export const CreateExperimentNumber = () => {
  return request({
    url: '/api/Experiment/CreateExperimentNumber',
    method: 'post',
  })
}

// 获取实验统计数据
export const ExperimentStatistics = () => {
  return request({
    url: '/api/Experiment/ExperimentStatistics',
    method: 'post',
  })
}

// 获取当前实验预计完成时长
export const GetThisExpectedCompletionTime = () => {
  return request({
    url: '/api/Experiment/GetThisExpectedCompletionTime',
    method: 'post',
  })
}

// 获取累计实验工作时长
export const Accumulateworkduration = () => {
  return request({
    url: '/api/Experiment/Accumulateworkduration',
    method: 'post',
  })
}

// 获取实验模板列表
export const ExperimentTemplateList = (data) => {
  return request({
    url: '/api/Experiment/ExperimentTemplateList',
    method: 'post',
    data
  })
}

// 获取实验模板详情
export const ExperimentTemplateDetail = (data) => {
  return request({
    url: '/api/Experiment/ExperimentTemplateDetail',
    method: 'post',
    data
  })
}

// 提交实验模板信息
export const SubmitExperimentTemplate = (data) => {
  return request({
    url: '/api/Experiment/SubmitExperimentTemplate',
    method: 'post',
    data
  })
}

// 批量删除实验模板信息
export const DelExperimentTemplate = (data) => {
  return request({
    url: "/api/Experiment/DelExperimentTemplate",
    method: 'post',
    data
  })
}

// 更新实验模板顺序
export const UpdateExperimentTemplateSort = (data) => {
  return request({
    url: "/api/Experiment/UpdateExperimentTemplateSort",
    method: 'post',
    data
  })
}

// 获取实验模板关联配置列表
export const ExperimentTemplateConfigList = (data) => {
  return request({
    url: '/api/Experiment/ExperimentTemplateConfigList',
    method: 'post',
    data
  })
}

// 获取实验模板关联配置详情
export const ExperimentTemplateConfigDetail = (data) => {
  return request({
    url: '/api/Experiment/ExperimentTemplateConfigDetail',
    method: 'post',
    data
  })
}

// 提交实验模板关联配置信息
export const SubmitExperimentTemplateConfig = (data) => {
  return request({
    url: '/api/Experiment/SubmitExperimentTemplateConfig',
    method: 'post',
    data
  })
}

// 批量删除实验模板关联配置信息
export const DelExperimentTemplateConfig = (data) => {
  return request({
    url: "/api/Experiment/DelExperimentTemplateConfig",
    method: 'post',
    data
  })
}
